package com.jic.interaction.JDVOP.controller;

import com.jic.interaction.JDVOP.common.utils.RestResult;
import com.jic.interaction.JDVOP.model.vo.request.GoodsSoldRequest;
import com.jic.interaction.JDVOP.service.GoodsSoldService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @description: TODO
 * @author: lixuehui
 * @date: 2020/11/15 16:26
 * @Version 1.0
 */

@RestController
@Slf4j
@RequestMapping("/api/price")
@Api(tags = " [价格API接口]")
public class GoodsSoldPriceController {

    @Resource
    private GoodsSoldService goodsSoldService;

    @PostMapping("/getSellPrice")
    @ApiOperation(value = "批量查询商品售卖价")
    public RestResult getSellPrice(@RequestBody GoodsSoldRequest request) throws Exception {
        return goodsSoldService.getSellPrice(request);
    }
}
